<script setup lang="ts">
	import postTable from './components/postTable.vue';
	import StatisticsList from './components/statisticsList';
  import { Apis } from '@/apis';
  import { onMounted,ref } from 'vue';
  const postCountList= ref<number[]>([])
  onMounted(() => {
  Apis.getPostItemsCount().then(res=>{
    postCountList.value = res.data
  })
})
</script>
<template>
	<div class="container">
		<StatisticsList :statisticsList="postCountList"></StatisticsList>
		<postTable></postTable>
	</div>
</template>
